feat: add ARCH-009 adr, tls platform hints, release lockfile fix, flaky test fixes#76
Merged
Merged
Conversation
bun install was regenerating the lockfile but simple-release only stages files tracked in changedFiles. Adding bun.lock ensures the lockfile is included in the release commit.
On Windows, show PowerShell syntax ($env:NODE_EXTRA_CA_CERTS=...), on Unix show export syntax.
All platform detection must go through src/helpers/platform.ts. Direct process.platform access outside platform.ts is forbidden. Also fixes flaky Windows test failures: - Replace Bun.$ with Bun.spawn in git test helpers (ARCH-007) - Add safeRmSync with retries for Windows EBUSY errors - Increase timeouts for git-commit-heavy tests
Deploying archgate-cli with
|
| Latest commit: |
c95c535
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1d6a3670.archgate-cli.pages.dev |
| Branch Preview URL: | https://fix-lockfile-and-tls-error-h.archgate-cli.pages.dev |
isWindows() is true for any shell on Windows, not just PowerShell. Now shows examples for PowerShell, cmd, and Git Bash.
When token claim fails because the user is not registered, the login command now prompts for email and use case, submits a signup request to the plugins API, and immediately retries the token claim (since signups are auto-approved).
getGitHubUser now returns both login and email from the GitHub API. The signup prompt pre-fills the email field when available.
- requestSignup now returns the token from the API response, avoiding a second token claim round-trip and duplicate tokens in the database - Signup flow prompts for editor preference (Claude Code / Cursor) - Falls back to claimArchgateToken if the signup response has no token
Match the frontend's editor choices: Claude Code, VS Code, Copilot CLI, and Cursor.
If .archgate/adrs/ exists in the current project, suggest running `archgate check` instead of `archgate init`.
- Login section now documents automatic signup flow for unregistered users - Added troubleshooting section for TLS/corporate proxy errors - Updated example output to show signup prompts and context-aware hints - Updated beta tips to reflect CLI-based signup (no external site needed) - All changes mirrored in PT-BR documentation
When running `archgate init` without credentials, the CLI now asks if the user wants to install the editor plugin. If yes, it runs the full GitHub device flow + signup inline, then continues with plugin installation. Skips interactive prompts in non-TTY environments (agent-driven runs) to avoid blocking MCP servers and onboarding agents.
The device flow, signup prompt, and credential storage logic was duplicated between login.ts and init.ts. Now both commands use runLoginFlow() from helpers/login-flow.ts. When the editor is already known (init --editor), the signup prompt skips the editor question.
Write docs as if the reader is seeing them for the first time, not announcing what changed.
All beta banners across editor guides and index pages now point to `archgate login` for signup instead of the external website.
The editor plugin section on both EN and PT-BR index pages now links to all four editor integration guides. Also fixes PT-BR index links to use /pt-br/ prefix.
Starlight resolves locale routes automatically, so PT-BR pages should use /guides/... not /pt-br/guides/.... The new no-locale-prefix-in-links rule catches this. Also fixes 28 pre-existing violations across PT-BR docs.
Regenerates llms-full.txt during CI and fails if there's a diff, ensuring it stays in sync with documentation changes.
Adds a workflow that regenerates and auto-commits llms-full.txt when docs content changes in a PR, matching the update-lock pattern. Removes the manual check from the validation workflow.
The auto-commit workflow handles PRs, but the check catches direct pushes or workflow failures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/helpers/platform.ts— directprocess.platformaccess is forbidden insrc/. Includes automated rule enforcement.exporton Unix) when suggestingNODE_EXTRA_CA_CERTS..simple-release.jsnow addsbun.locktochangedFilesso the lockfile is included in the release commit.Bun.$withBun.spawnin git tests (ARCH-007), addsafeRmSyncwith retries for Windows EBUSY errors, increase timeouts for git-commit-heavy tests.Test plan
bun run validatepasses (284 tests, 14 ADR rules)git.test.tsandgit-files.test.tsnow pass reliably on Windowsprocess.platformusage outsideplatform.ts